package cn.gdk.gaodekecc.feig;

import cn.gdk.gaodekecc.domain.Stocks;
import cn.gdk.gaodekecc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "service-stocks",value = "service-stocks",path = "/stocks")
public interface StocksService {
    /**
     * 入库接口
     */
    @RequestMapping(value="/warehousing",method= RequestMethod.POST)
    JSONResult warehousing(@RequestBody Stocks stocks);

    @RequestMapping(value = "/{id}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("id")Long id);
}